package xworker.javafx.beans.property;

import org.xmeta.ActionContext;
import org.xmeta.Thing;

public class ParentProperty {
    public static Object create(ActionContext actionContext){
        Thing self = actionContext.getObject("self");
        String name = self.getThingName();
        Object parent = actionContext.getObject("parent");

        Object property = PropertyFactory.getProperty(parent, name);
        actionContext.g().put(self.getMetadata().getName(), property);
        return property;
    }
}
